import java.io.Serializable;

import java.math.BigDecimal;

import java.sql.Timestamp;



/**

 * product

 * @author 

 */

public class Product implements Serializable {

    //商品id

    private Integer id;

    //商品分类id

    private Integer category_id;



    private Category category;

    //商品名称

    private String name;

    // 商品副标题

    private String title;

    //产品主图,url相对地址

    private String main_image;

    //产品子图,url相对地址加逗号隔开

    private String sub_images;

    //详细内容

    private String detail;

    //价格,单位-元保留两位小数

    private BigDecimal price;

    //库存数量

    private Integer stock;

    // 商品状态.1-在售 2-下架 3-删除

    private Integer status;

    //创建时间

    private Timestamp create_time;

    //更新时间

    private Timestamp update_time;



    private static final long serialVersionUID = 1L;



    public Integer getId() {

        return id;

    }



    public void setId(Integer id) {

        this.id = id;

    }



    public Integer getCategory_id() {

        return category_id;

    }



    public void setCategory_id(Integer category_id) {

        this.category_id = category_id;

    }



    public Category getCategory() {

        return category;

    }



    public void setCategory(Category category) {

        this.category = category;

    }



    public String getName() {

        return name;

    }



    public void setName(String name) {

        this.name = name;

    }



    public String getTitle() {

        return title;

    }



    public void setTitle(String title) {

        this.title = title;

    }



    public String getMain_image() {

        return main_image;

    }



    public void setMain_image(String main_image) {

        this.main_image = main_image;

    }



    public String getSub_images() {

        return sub_images;

    }



    public void setSub_images(String sub_images) {

        this.sub_images = sub_images;

    }



    public String getDetail() {

        return detail;

    }



    public void setDetail(String detail) {

        this.detail = detail;

    }



    public BigDecimal getPrice() {

        return price;

    }



    public void setPrice(BigDecimal price) {

        this.price = price;

    }



    public Integer getStock() {

        return stock;

    }



    public void setStock(Integer stock) {

        this.stock = stock;

    }



    public Integer getStatus() {

        return status;

    }



    public void setStatus(Integer status) {

        this.status = status;

    }



    public Timestamp getCreate_time() {

        return create_time;

    }



    public void setCreate_time(Timestamp create_time) {

        this.create_time = create_time;

    }



    public Timestamp getUpdate_time() {

        return update_time;

    }



    public void setUpdate_time(Timestamp update_time) {

        this.update_time = update_time;

    }

}